package com.hc.model.code04.test.impl;

import com.hc.model.code04.test.Factory;
import com.hc.model.code04.test.Handler;

/**
 * @version v1.0
 * @ClassName: ZhangSanHandler
 * @Description: 具体的策略实现
 * @Author: HC
 */
public class ZhangSanHandler extends Handler {
    @Override
    public void AAA(String name) {
        System.out.println("张三完成任务AAA");
    }

    @Override
    public void afterPropertiesSet() {
        Factory.register("张三", this);
    }
}
